package com.atxiaodei.单向链表;

/**
 * @ClassName LinkListApp
 * @Deacription TODO
 * @Author 王盟
 * @Date 2021/6/3 10:44
 * @Version 1.0
 **/
public class LinkListApp {

    public static void main(String[] args) {
        LinkList linkList = new LinkList();
        int begin = 10;
        int end = 70;
        int k = end / begin;
        double append = 0.99;

        for (int i = 0; i < k; i++) {
            linkList.insertFirst(begin, begin + append);
            begin += 10;
        }

        linkList.displayList();

        while (!linkList.isEmpty()) {
            Link alink = linkList.deleteFirst();
            alink.displayLink();
        }

        linkList.displayList();
    }
}
